<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>水平方向表单布局-BootStrap常用表单布局</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
	
    <link href="/user/plug-in/bootstrapv4.1.3/css/bootstrap.css" rel="stylesheet">
    <link href="/user/layuiv2.3.0/css/layui.css" rel="stylesheet">
    <script src="/user/plug-in/jquery/jquery.min.js"></script>
    
    <script src="/user/plug-in/bootstrapv4.1.3/js/bootstrap.js"></script>
    <script src="/user/plug-in/jquery-cookie/jquery-cookie.js"></script>
    
    <script src="/user/plug-in/layuiv2.3.0/layui.js"></script>

</head>
<body>
    <div class="container">
	    <div class="modal-body">
			<form class="layui-form" action="">
			  <input type="hidden" id="id" name="id" th:value="${menu.id}">
			  <div class="layui-form-item">
			    <label class="layui-form-label">父菜单</label>
			    <div class="layui-input-block">
<!-- 			    <input type="text" th:value="${menu.parentMenu.name}"> -->
			      <input type="hidden" name="parentMenu.id" lay-verify="required" th:value="${menu.id}"  autocomplete="off" class="layui-input">
			      <input type="text" name="parentMenu.name" readonly="readonly" th:value="${menu.name}" placeholder="" autocomplete="off" class="layui-input">
			    </div>
			  </div>
			  <div class="layui-form-item">
			    <label class="layui-form-label">菜单名称</label>
			    <div class="layui-input-block">
			      <input type="text" name="name" lay-verify="required" placeholder="请输入 菜单名称" autocomplete="off" class="layui-input">
			    </div>
			  </div>
			  <div class="layui-form-item">
			    <label class="layui-form-label">图标</label>
			    <div class="layui-input-block">
			      <input type="text" name="icon" id="icon" placeholder="" autocomplete="off" class="layui-input">
			    </div>
			  </div>
			  <div class="layui-form-item">
			    <label class="layui-form-label">排序</label>
			    <div class="layui-input-block">
			      <input type="text" name="order" id="order" lay-verify="number" placeholder="请输入排序" autocomplete="off" class="layui-input">
			    </div>
			  </div>
			  <div class="layui-form-item">
			    <label class="layui-form-label">地址</label>
			    <div class="layui-input-block">
			      <input type="text" name="url" placeholder="" autocomplete="off" class="layui-input">
			    </div>
			  </div>
			  <div class="layui-form-item">
			    <div class="layui-input-block">
			      <button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
			      <button type="reset" class="layui-btn layui-btn-primary">重置</button>
			    </div>
			  </div>
			</form>
		</div>
	</div>
</body>

<script src="/user/js/applicationjs/menu/editmenu.js"></script>
</html>